<?php
require_once('../includes/frameworkajax.php');
$ci_inventario =  @$_POST["ci_inventario"];
$sql= " select ci_inventario from tethys.tb_inventario where dt_encerramento is null and ci_inventario=".$ci_inventario;

$rs = Connection::query($sql);
$row = $rs->fetch();

echo json_encode($row);
?>